const KoaRouter = require('@koa/router')
const {
  create,
  list,
  remove,
  update

} = require('../controller/label.controller')
const { verifyAuth } = require('../middleware/login.middleware')
// const { verifyPermission } = require('../middleware/perission.middleware')

const labelRouter = new KoaRouter({ prefix: '/label' })
// 增 新增评论
labelRouter.post('/', verifyAuth, create)
// 展示标签列表
labelRouter.get('/list', list)
// 删除标签
labelRouter.delete('/:labelId',verifyAuth,remove)
// 修改列表
labelRouter.patch('/:labelId', verifyAuth, update)
module.exports = labelRouter
